package com.zlp.mybatisplus.mybatisplus.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 抽奖奖品和概率
 * </p>
 *
 * @author zhulaiping
 * @since 2022-01-25
 */
@TableName("bcrm_lotto_probability")
public class LottoProbability extends Model<LottoProbability> {

    private static final long serialVersionUID = 1L;

    /**
     * 抽奖奖品id
     */
    private String id;

    /**
     * 概率
     */
    private Double probability;

    /**
     * 奖品名称
     */
    private String name;

    /**
     * 奖品类型(1: 红包 2:积分 3:实物 4:虚拟)
     */
    private Integer type;

    /**
     * 奖品id
     */
    @TableField("award_prize_id")
    private String awardPrizeId;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 图片url
     */
    @TableField("cover_url")
    private String coverUrl;

    /**
     * 是否同步金额(1: 同步 2: 不同步)
     */
    @TableField("sync_type")
    private Integer syncType;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Double getProbability() {
        return probability;
    }

    public void setProbability(Double probability) {
        this.probability = probability;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getAwardPrizeId() {
        return awardPrizeId;
    }

    public void setAwardPrizeId(String awardPrizeId) {
        this.awardPrizeId = awardPrizeId;
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }
    public Integer getSyncType() {
        return syncType;
    }

    public void setSyncType(Integer syncType) {
        this.syncType = syncType;
    }
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LottoProbability{" +
        "id=" + id +
        ", probability=" + probability +
        ", name=" + name +
        ", type=" + type +
        ", awardPrizeId=" + awardPrizeId +
        ", number=" + number +
        ", coverUrl=" + coverUrl +
        ", syncType=" + syncType +
        ", createdAt=" + createdAt +
        ", updatedAt=" + updatedAt +
        ", deletedAt=" + deletedAt +
        "}";
    }
}
